home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Recursive Definition?
- Date: 17 Jan 1996 00:41:46 GMT
- Organization: self-employed
- Message-ID: <4dhgka$u9c@news.bridge.net>
- References: <4df39j$f80@news.vcd.hp.com>
- NNTP-Posting-Host: ppp-mia2-81.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
- >> const Switch Switch::On = 1;
- >> const Switch Switch::Off = 0;
-
- >> What are the above two statements trying to initialize?
- >> It seems to me that they are sort of doing a recursive
- >> initialization. Please help!!!!
-
- This is an ordinary initialisation of two static member variables.
- On and Off are two 'permanent' Switch objects. Their names are in the
- class namespace. Their initial values are as specified above.
-
- David
-
-
-